<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\models\Corp */

$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => 'Corps', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="corp-view">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a('Update', ['update', 'id' => $model->uid], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('Delete', ['delete', 'id' => $model->uid], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
           // 'uid',
            'name',
            'title',
            'url:url',
            'address',
            'number',
            'type',
            'state',
            'experience',
            'recruit_number',
            'education',
            'money',
            'job_description:html',
            'corp_time:datetime',
            'create_time:datetime',
        ],
        //'template' => '<tr><th>{label}</th><td>{value}</td></tr>',
        //'options' => ['class1' => 'table table-striped table-bordered detail-view'],
    ]) ?>

</div>
